<?
require_once './config.inc.php';
if (empty($_SESSION["username"])){
	//header("Location:/admin/login.php");
	//echo "<script>window.open('/admin/login.php','_parent');</script>";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><? echo $mysitename; ?></title>
<link href="images/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top">
    <table cellspacing="0" cellpadding="0" width="100%" border="0">
        <tbody>
            <tr>
                <td background="images/bg_top.jpg"><table cellspacing="0" cellpadding="0" width="100%" border="0">
                        <tbody>
                            <tr>
                                <td width="30" height="64">&nbsp;</td>
                                <td width="68"><img height="50" src="images/logo.gif" 
            width="53" /></td>
                                <td width="935"><table cellspacing="0" cellpadding="0" width="100%" border="0">
                                        <tbody>
                                            <tr>
                                                <td width="100%"><table cellspacing="0" cellpadding="0" width="100%" border="0">
                                                        <tbody>
                                                            <tr>
                                                                <td width="10%" height="40" class="title">MyOffice</td>
                                                                <td width="90%" 
                        align="left" ><table width="100%">
                                                                        <tr>
                                                                            <td>
<a href="/" target="_parent" class="a_bai12">桌面</a> | <a href="view_note.php" target="frmView">资料</a> | <a href="view_blog.php" target="frmView">日记</a> | <a href="view_site.php" target="frmView">网站</a> | <a href="view_book.php" target="frmView">帐本</a> | <a href="view_adds.php" target="frmView">通讯录</a>
<?php if ($_SESSION["adminid"] ==1 ){?>
| <a href="/admin/admin_user.php" target="frmView">用户</a>| <a href="/admin/admin_system.php" target="frmView">系统</a>
<?php }else{?>
| <a href="/admin/admin_user.php?id=<?=$_SESSION["uid"]?>" target="frmView">用户</a>

<?php }?>
</td>
                                                                            <td><form action="frmView_right.php" method="post" target="frmView" name="search_from" id="search_from">
                                                                                    <!--		    <label>
                <input name="stype" type="radio" value="note" checked>
                资料</label>

              <label>
                <input type="radio" name="stype" value="site">
                网址</label>

              <label>
                <input type="radio" name="stype" value="blog">
                日记</label>

              <label>
                <input type="radio" name="stype" value="adds">
                通讯录</label>
--> &nbsp; &nbsp;
                                                                                    <input name="keywords" type="text" id="keywords" value="<?php echo $keywords ?>" size="18">
                                                                                    显示：
                                                                                    <input name="limit" type="text" value="20" size="2">
                                                                                    条
                                                                                    <select name="order_by">
                                                                                        <option value="0" >创建日期</option>
                                                                                        <option value="1" selected="selected">修改日期</option>
                                                                                        <option value="2" >访问次数</option>
                                                                                        
                                                                                    </select>
                                                                                    <input name="" type="submit" value=搜索>
                                                                                </form></td>
                                                                            <td></td>
                                                                            <td><table border="0" align="center" cellpadding="0" cellspacing="0">
                                                                                    <tbody>
                                                                                        <tr><!--
                                                                                            <td class="textButton" onclick="javascript:history.go(-1);" align="middle" width="55" height="22"><a href="#"><img src="images/undo.gif" alt="{lang back_off}" width="32" height="32" border="0" /></a></td>
                                                                                            <td class="textButton" onclick="javascript:history.go(1);" align="middle" width="55" height="22"><a href="#"><img src="images/redo.gif" alt="{lang go_ahead}" width="32" height="32" border="0" /></a></td>-->
                                                                                            <td class="textButton"  onclick="top.frmView.location.reload();top.leftFrame.location.reload();" align="middle" width="55" height="22"><a href="#"><img src="images/reload.gif" alt="{lang refresh}" width="32" height="32" border="0" /></a></td>
                                                                                            <td align="middle" width="55" height="22"><a href="admin/login.php?action=logout" target="_top"><img src="images/exit.gif" alt="{lang exit}" width="32" height="32" border="0" /></a></td>
                                                                                        </tr>
                                                                                    </tbody>
                                                                                </table></td>
                                                                        </tr>
                                                                        <tr>
                                                                          <td>&nbsp;</td>
<td><div class="index_login">
<?
if (empty($_SESSION["username"])) {
?>
<a href="admin/login.php">登录</a>
<? 
} else {
?>
欢迎登录：<strong><? echo $_SESSION["username"] ?></strong>
<? 
}
?>
</div>&nbsp;</td>
                                                                          <td>&nbsp;</td>
                                                                          <td>&nbsp;</td>
                                                                        </tr>
                                                                    </table></td>
                                                            </tr>
                                                        </tbody>
                                                    </table></td>
                                            </tr>
                                        </tbody>
                                    </table></td>
                            </tr>
                        </tbody>
                    </table></td>
            </tr>
            <tr>
                <td height="2"></td>
            </tr>
        </tbody>
    </table>
</div>
<div style="clear:both"></div>
